package com.Excrises.Eight;

import com.javacore.Employee;
import com.javacore.Manager;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class two {
    public static void main(String[] args) {
        //
        Set<Employee> set = new HashSet<>();

        set.add(new Manager(12,2021,9,12,"luolin"));
        set.add(new Manager(12,2011,8,12,"luolin"));
        set.add(new Manager(32.234,2018,10,28,"jiasfnd"));
        Iterator iterator = set.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next().toString());
        }

    }
}
